<%-------------------------------------------------------------------
 * 页面名称：innerMenuPerson.jsp
 * 功能描述：登录后页面Sitemesh菜单页面－个人&企业操作员菜单
 * Action  :
 *
 *-------------------------------------------------------------------
--%>
<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib uri="struts-bean.tld" prefix="bean"%>
<%@ taglib uri="struts-logic.tld" prefix="logic"%>
<%@ page import="java.util.*"%>
<%@ page import="cn.agiledata.bank.common.util.Constant"%>
<%@ page import="cn.agiledata.bank.account.service.IAccountConst"%>
<%@ page import="cn.agiledata.bank.account.service.AccountSummary"%>
<style>
<!--
.menu_sub4{margin:0 auto;width:580px;height:26px;line-height:26px;padding-left:305px;text-align:left;}
-->
</style>
<logic:present name="modual">
	<%
		String path = request.getContextPath();

		AccountSummary user = (AccountSummary) session
				.getAttribute(Constant.SESSION_ACCOUNT_SUMMARY);
		// 一级菜单状态
		Map mapMenuLv1 = new HashMap();
		// 二级菜单状态
		Map mapMenuLv2 = new HashMap();
		AccountSummary account = (AccountSummary) request.getSession()
				.getAttribute("userinfo");
		String name = account.getUser().getUsername();
	%>
	<%
		// 一级菜单功能类型
		String strModualLv1 = (String) session.getAttribute("modual");
		if (strModualLv1 != null) {
			// 设置菜单选中状态
			if (strModualLv1.equals("space")) {
				mapMenuLv1.put("space", "id='current'"); // 我的账户
			}
			if (strModualLv1.equals("inpour_draw")) {
				mapMenuLv1.put("inpour_draw", "id='current'"); // 充值提现
			}
			if (strModualLv1.equals("pay")) {
				mapMenuLv1.put("pay", "id='current'"); // 付款收款
			}
			if (strModualLv1.equals("manage")) {
				mapMenuLv1.put("manage", "id='current'"); // 交易管理
			}
			if (strModualLv1.equals("batchInpuor")) {
				mapMenuLv1.put("batchInpuor", "id='current'"); // 交易管理
			}
			if (strModualLv1.equals("barcodepay")) {
				mapMenuLv1.put("barcodepay", "id='current'"); // 交易管理
			}
		}

		// 二级菜单功能类型
		String realModual = request.getParameter("modual");
		if (realModual == null) {
			String url = request.getRequestURL().toString();
			if (url.indexOf("accountInfo.do") > 0) {//账户信息
				realModual = "space$account";
			} else if (url.indexOf("acctBalHis.do") > 0) {//余额流水查询
				realModual = "space$balhis";
			} else if (url.indexOf("subAccountTransfer.do") > 0) {//子账户转账
				realModual = "space$subAccountTransfer";
			} else if (url.indexOf("getScores.do") > 0) {//积分信息
				realModual = "space$scores";
			} else if (url.indexOf("getScoresHistory.do") > 0) {//积分信息
				realModual = "space$scores";
			} else if (url.indexOf("netBankInpour.do") > 0) {//网上银行充值
				realModual = "inpour_draw$netBank";
			} else if (url.indexOf("telBankInpour.do") > 0) {//电话银行充值
				realModual = "inpour_draw$telBank";
			} else if (url.indexOf("transaction/bankRemitInpour.do") > 0) {//银行汇款充值
				realModual = "inpour_draw$bankRemit";
			} else if (url.indexOf("postRemitInpour.do") > 0) {//邮局汇款充值
				realModual = "inpour_draw$postRemit";
			} else if (url.indexOf("drawToSelf.do") > 0) {//提现
				realModual = "inpour_draw$toSelf";
			} else if (url.indexOf("innerPay.do") > 0) {//网上付款
				realModual = "pay$innerPay";
			} else if (url.indexOf("drawToOther.do") > 0) {//账户直付
				realModual = "pay$drawToOther";
			} else if (url.indexOf("batchPay.do") > 0) {//批量支付
				realModual = "pay$batch";
			} else if (url.indexOf("innerCollect.do") > 0) {//网上收款
				realModual = "pay$innerCollect";
			} else if (url.indexOf("historyTransQuery.do") > 0) {//历史交易查询
				realModual = "manage$history";
			} else if (url.indexOf("refundQuery.do") > 0) {//担保退款查询
				realModual = "manage$refundTrans";
			} else if (url.indexOf("toQueryPage.do") > 0) {//对账单打印
				realModual = "manage$print";
			} else if (url.indexOf("saveChain.do") > 0) {//获取支付链
				realModual = "tools$chain";
			} else if (url.indexOf("returnTransQuery.do") > 0) {//退款申请交易查询
				realModual = "manage$returnApply";
			} else if (url.indexOf("innerBarCodePay") > 0) {//退款申请交易查询
				realModual = "innerBarCodePay";
			} else if (url.indexOf("innerCharge") > 0) {//退款申请交易查询
				realModual = "innerCharge";
			} else if (url.indexOf("payHistorySearch.do") > 0) {//退款申请交易查询
				realModual = "payHistorySearch";
			} else if (url.indexOf("UserSetup.do") > 0) {
				realModual = "userSetup";
			} else if (url.indexOf("toAcctLimit.do") > 0) {
				realModual = "toAcctLimit";
			} else if (url.indexOf("accountList.do") > 0) {
				realModual = "accountList";
			} else if (url.indexOf("getPeerInnerAccountList.do") > 0) {
				realModual = "getPeerInnerAccountList";
			} else if (url.indexOf("modual=space") > 0) {
				realModual = "myspace";
			} else {
				realModual = "null";
			}
		} else if (realModual.equals("pay$merchant")) {
			realModual = "pay$innerPay";
		} else if (realModual.equals("space$scoresrule")) {
			realModual = "space$scores";
		}
	%>

	<div class="main">
		<div class="head">
			<a style="margin-left:625px;color:#0099CC;"><%=name%>，欢迎您！</a><a
				href="<%=path%>/toRegister.do">注册</a><a href="#" onClick="quit()">安全退出</a>
			<div class="login_logo">
				<!--  <img src="<%=path%>/images/LOGO-4_a.jpg" />-->
			</div>
		</div>
		<!-- 页面左边部分结束 -->
		<div class="content">
			<div class="content_left">
				<jsp:include page="left.jsp?current=myspace" />
			</div>
			<div class="content_right">
				<div class="navigation_href">
					<!-- 页面导航部分开始 -->
					<table cellpadding="0" cellspacing="0">
						<tr>
							<td class="menu_left"></td>
							<td class="menu_maddle" valign="top">
								<div class="menu">
									<div style="width:160px;">
										<a href="<%=path%>/route.do?modual=space"
											<%=mapMenuLv1.get("space")%>>我的账户</a>

									</div>
									<div style="width:120px;">
										<a href="<%=path%>/route.do?modual=inpour_draw$netBank"
											<%=mapMenuLv1.get("inpour_draw")%>>充值提现</a>
									</div>
									<div style="width:140px;">
										<a href="<%=path%>/route.do?modual=pay$innerPay"
											<%=mapMenuLv1.get("pay")%>>付款收款</a>
									</div>
									<div style="width:140px;">
									<!-- manage$query -->
										<a href="<%=path%>/route.do?modual=manage$query"
											<%=mapMenuLv1.get("manage")%>>交易管理</a>
									</div>
									<div style="width:50px;font-size:13px;">
										
									</div>
									<div style="width:50px;font-size:13px;">
										
									</div>
								</div>
								<logic:equal name="modual" value="space" scope="session">
									<div class="futitle">
										<table>
											<tr>
												<td class="cz_bg">
													<a href="<%=path%>/route.do?modual=space$account"
														<%if (realModual.equals("space$account") || realModual.equals("space")){%>
														class="bluefont12b" <%}else{%> class="bluefont12drop"
														<%}%>>账户信息</a>
												</td>
												<td width="28">
													<a>|</a>
												</td>
												<td>
													<a href="<%=path%>/route.do?modual=space$balhis"
														class="<%=realModual.equals("space$balhis") ? "bluefont12b"
					: "bluefont12drop"%>">余额流水查询</a>
												</td>
												<td width="28">
													<a>|</a>
												</td>
												<logic:equal name="sessionAccountSummary"
													property="user.accountType" value="A"><%--
													<td>
														<!-- 个人用户所属功能 -->
														<!-- <a href="<%=path%>/route.do?modual=space$subAccountTransfer" 
				c">子账户转账</a> | -->
														<a href="<%=path%>/route.do?modual=space$scores"
															class="<%=realModual.equals("space$scores") ? "bluefont12b"
					: "bluefont12drop"%>">积分信息</a>

													</td>
													<td width="28">
														<a>|</a>
													</td>
												--%></logic:equal>

												<td>
													<a
														onclick="loading('<%=path%>/page/myspace/toAcctLimit.do');"
														class="<%=realModual.equals("toAcctLimit") ? "bluefont12b"
					: "bluefont12drop"%>"
														href="#">设置提现金额</a>
												</td>
												<td width="28">
													<a>|</a>
												</td>
												<td>
													<a href="#"
														onclick="loading('<%=path%>/page/myspace/getPeerInnerAccountList.do');"
														class="<%=realModual.equals("getPeerInnerAccountList") ? "bluefont12b"
							: "bluefont12drop"%>">联系人</a>

												</td>
												<td width="28">
													<a>|</a>
												</td>
												<td>
													<a href="#"
														onclick="loading('<%=path%>/page/myspace/UserSetup.do?dispatch=init');"
														class="<%=realModual.equals("userSetup") ? "bluefont12b"
					: "bluefont12drop"%>">定制提醒信息</a>
												</td>
											</tr>
										</table>
									</div>
								</logic:equal>
								<logic:equal name="modual" value="inpour_draw" scope="session">
									<div class="paytitle">
										<table>
											<tr>
												<td>
													<a href="<%=path%>/route.do?modual=inpour_draw$netBank"
														class="<%=realModual.equals("inpour_draw$netBank") ? "bluefont12b"
							: "bluefont12drop"%>">网上银行充值</a>
												</td>
												<td width="28" style="text-align:center;">
													<a>|</a>
												</td>
												<td style="text-align:center;">
													<a href="<%=path%>/route.do?modual=inpour_draw$toSelf"
														class="<%=realModual.equals("inpour_draw$toSelf") ? "bluefont12b"
							: "bluefont12drop"%>">账户提现</a>
												</td>
											</tr>
										</table>
									</div>
								</logic:equal>

								<logic:equal name="modual" value="pay" scope="session">
									<div class="tixiantitle" style="margin-left:250px">
										<table>
											<tr>
												<td class="cz_bg">
													<a href="<%=path%>/route.do?modual=pay$innerPay"
														class="<%=realModual.equals("pay$innerPay") ? "bluefont12b"
					: "bluefont12drop"%>">网上付款</a>
												</td>
												<!--  <td width="28">
													<a>|</a>
												</td>
												<td>
													<a href="<%=path%>/route.do?modual=pay$drawToOther"
														class="<%=realModual.equals("pay$drawToOther") ? "bluefont12b"
					: "bluefont12drop"%>">账户直付</a>
												</td>
												-->
												<logic:equal name="sessionAccountSummary"
													property="user.accountType" value="B">
													<td width="28">
														<a>|</a>
													</td>
													<td>
														<a href="<%=path%>/route.do?modual=pay$batch"
															class="<%=realModual.equals("pay$batch") ? "bluefont12b"
					: "bluefont12drop"%>">批量支付</a>
													</td>
												</logic:equal>
												<td width="28">
													<a>|</a>
												</td>
												<td>
													<a href="<%=path%>/route.do?modual=pay$innerCollect"
														class="<%=realModual.equals("pay$innerCollect") ? "bluefont12b"
							: "bluefont12drop"%>">网上收款</a>
												</td>
											</tr>
										</table>
									</div>
								</logic:equal>
								<logic:equal name="modual" value="manage" scope="session">

									<%
												if (user.getAccount().getAccountType().equals("B")
												|| user.getAccount().getAccountType().equals("C")) {
									%>
									<div style="font-size: 13px;font-weight: normal;margin-left: 15px;">
										<%
										} else {
										%>
										<div class="transtitle">
											<%
											}
											%>
											<table>
												<tr>
													<td class="cz_bg">
														<a href="<%=path%>/route.do?modual=manage$query"
															class="<%=realModual.equals("manage$query") ? "bluefont12b"
					: "bluefont12drop"%>">待处理交易</a>
													</td>
													<td width="20">
														<a>|</a>
													</td>
													<td>
														<a href="<%=path%>/route.do?modual=manage$history"
															class="<%=realModual.equals("manage$history") ? "bluefont12b"
					: "bluefont12drop"%>">历史交易查询</a>
													</td>
													<td width="20">
														<a>|</a>
													</td>
													<td>
														<a href="<%=path%>/route.do?modual=manage$refundTrans"
															class="<%=realModual.equals("manage$refundTrans") ? "bluefont12b"
							: "bluefont12drop"%>">担保退款</a>
													</td>
													<td width="20">
														<a>|</a>
													</td>
													<!-- 企业用户特有交易管理功能 -->
													<logic:equal name="sessionAccountSummary"
														property="user.accountType" value="B">
														<td>
															<a href="<%=path%>/route.do?modual=manage$waitingAudit"
																<a href="<%=path%>/route.do?modual=manage$waitingAudit"
						class="<%=realModual.equals("manage$waitingAudit") ? "bluefont12b"
							: "bluefont12drop"%>">待审核交易</a>
														</td>
														<td width="20">
															<a>|</a>
														</td>
														<td>
															<a href="<%=path%>/route.do?modual=manage$waitingPay"
																class="<%=realModual.equals("manage$waitingPay") ? "bluefont12b"
							: "bluefont12drop"%>">待支付交易</a>
														</td>
														<td width="20">
															<a>|</a>
														</td>
														<td>
															<a href="<%=path%>/route.do?modual=manage$auditReject"
																class="<%=realModual.equals("manage$auditReject") ? "bluefont12b"
							: "bluefont12drop"%>">审核失败交易</a>
														</td>
														<td width="20">
															<a>|</a>
														</td>
														<td>
															<a href="<%=path%>/route.do?modual=manage$returnApply"
																class="<%=realModual.equals("manage$returnApply") ? "bluefont12b"
							: "bluefont12drop"%>">退款申请</a>
														</td>
														<td width="20">
															<a>|</a>
														</td>
													</logic:equal>

													<!-- 内部企业用户特有交易管理功能 -->
													<logic:equal name="sessionAccountSummary"
														property="user.accountType" value="C">
														<td>
															<a href="<%=path%>/route.do?modual=manage$waitingAudit"
																class="<%=realModual.equals("manage$waitingAudit") ? "bluefont12b"
							: "bluefont12drop"%>">待审核交易</a>
														</td>
														<td width="20">
															<a>|</a>
														</td>
														<td>
															<a href="<%=path%>/route.do?modual=manage$waitingPay"
																class="<%=realModual.equals("manage$waitingPay") ? "bluefont12b"
							: "bluefont12drop"%>">待支付交易</a>
														</td>
														<td width="20">
															<a>|</a>
														</td>
														<td>
															<a href="<%=path%>/route.do?modual=manage$auditReject"
																class="<%=realModual.equals("manage$auditReject") ? "bluefont12b"
							: "bluefont12drop"%>">审核失败交易</a>
														</td>
														<td width="20">
															<a>|</a>
														</td>
														<td>
															<a href="<%=path%>/route.do?modual=manage$returnApply"
																class="<%=realModual.equals("manage$returnApply") ? "bluefont12b"
							: "bluefont12drop"%>">退款申请</a>
														</td>
														<td width="20">
															<a>|</a>
														</td>
													</logic:equal>

													<td>
														<a href="<%=path%>/route.do?modual=manage$print"
															class="<%=realModual.equals("manage$print") ? "bluefont12b"
					: "bluefont12drop"%>">对账单打印</a>
													</td>
												</tr>
											</table>
								</logic:equal>
								</div>
							</td>
							<td class="menu_right"></td>
						</tr>
					</table>
				</div>
			</div>

</logic:present>
